﻿namespace _07.GSMTest
{
    using System;
    using _01.MobileDevice;

    public class Program
    {
        public static void Main()
        {
            GSM[] gsmArray = new GSM[4];

            gsmArray[0] = new GSM("S3", "Samsung");
            gsmArray[1] = new GSM("808 PureView", "Nokia", 580, null);
            gsmArray[2] = new GSM("S4", "Samsung", 899, null, new Display(5, 16000000), new Battery("2600mAh", BatteryType.LiIon, 370, 17));
            gsmArray[3] = GSM.IPhone4S;

            foreach (var gsm in gsmArray)
            {
                Console.WriteLine(gsm.ToString());
            }
        }
    }
}
